/*
 *    Copyright (c) 2020-2025, sunlei All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Author: sunlei (daizile@126.com)
 */
/*
{
    page:{
        current:1, //当前页数
        size:10   //每页长度
    },
    cond:{ //条件
        eq:{ // 多条件对象
                        id,//Integer 
                        title,//String 标题
                        introduction,//String 简介
                        createTime,//LocalDateTime 添加时间
                        bannerImg,//String 录播图
                        isDel,//Integer 0:未删除  1:删除
                        content,//String 消息内容
                        modelName,//String 模块名称: 明文存储 例如 新闻,系统通知
                        userId,//Long 个人消息时,使用的用户ID.系统消息时，数值默认为0
                        sortId,//Long 排序序号：新闻模块使用
                    }
    }
}
 */
// 分页查询
function NewsPageList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/news/pagequery","post",query,SuccessFunc,FailedFunc);
}
// 列表查询
function NewsqueryList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/news/queryList","post",query,SuccessFunc,FailedFunc);
}
// 插入数据
function NewsaddObj(obj,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/news/save", "post", obj,SuccessFunc,FailedFunc)
}
// 主键获取数据
function NewsgetObj(id,SuccessFunc,FailedFunc){
    slAjax("/abkj-api-match-provider/news/"+id,"get",null,SuccessFunc,FailedFunc);
}

/**
 * 主键更新
 */
function NewsupdateById(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/news/updateById","post",query,SuccessFunc,FailedFunc);
}
/**
 * 多条件 更新
 */
function NewsupdateByMulCond(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/news/updateByMulCond","post",query,SuccessFunc,FailedFunc);
}
// 主键删除数据
function NewsdelObj(id,SuccessFunc,FailedFunc) {
  slAjax("/abkj-api-match-provider/news/delete/"+id,"get",null,SuccessFunc,FailedFunc);
}

